package org.wuqi.microdataservice.mapper;

import org.apache.ibatis.annotations.Param;
import org.wuqi.api.model.BaseInfoIndex;
import org.wuqi.bean.LoanInfo;

import java.math.BigDecimal;
import java.util.List;

public interface LoanInfoMapper {
//    查看历史的利率
    BigDecimal selectProductAvg();
    List<LoanInfo> selectLoanInfo();
    int deleteByPrimaryKey(Integer id);

    int insert(LoanInfo record);

    int insertSelective(LoanInfo record);

    LoanInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(LoanInfo record);
    int updateByPrimaryKey(LoanInfo record);
    List<LoanInfo> selectInfoType(@Param("product_type") Integer type);
}
